home *** CD-ROM | disk | FTP | other *** search
- Path: news.ist.utl.pt!news
- From: l36612@alfa.ist.utl.pt (Rodrigo Ventura)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Visual E - New E Developer Tool - vedev.gif (0/1)
- Date: 31 Mar 1996 21:58:52 GMT
- Organization: Instituto Superior Tecnico
- Message-ID: <1415.6664T822T817@alfa.ist.utl.pt>
- References: <4je612$dns@pravda.aa.msen.com>
- NNTP-Posting-Host: alfa.ist.utl.pt
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
-
- Chad Randall wrote (28-Mar-96 14:00:02):
- > And I did not know that C++ could deallocate, *automatically*, allocated
- > memory upon program exit, no matter how the program ends.
- > Could you tell me how?
-
- The technique is called 'garbage collection', and is as old as LISP.
- The catch is to track both the memory allocated and the pointers using it.
- When there is no pointers referencing to a memory block, then is is freed.
- It's a heavy process, and in stategic times, the run-time system scans for lal
- pointers to see for unreferenced memory, freeing it if necessary. This is
- called garbage collection. Emacs do sometimes garbage collection, since it is
- built on LISP. However this garbage collection capability makes the
- programming much more easy and in some sense, more high level.
-
- Regards,
-
- --
-
- +--------------------------------------------------------+-----------+
- | Rodrigo Ventura, alias <Master Yoda> | / |
- +--------------------------------------------------------+ - / --- |
- | Electronic Engineering Course, Control and Robotics | | | | |
- | Instituto Superior TΘcnico, Lisboa, Portugal | | | | |
- +--------------------------------------------------------+ - / | |
- | L36612@alfa.ist.utl.pt, http://alfa.ist.utl.pt/~l36612 | / |
- +--------------------------------------------------------+-----------+
-
-